<template>
  <div>
        <h1>测试页面</h1>
         <button @click="addFollow(1)">添加关注用户1</button>
    <button @click="addFollow(2)">添加关注用户2</button>
    <button @click="addFollow(3)">添加关注用户3</button>
    <button @click="addFollow(4)">添加关注用户4</button>
    <button @click="addFollow(5)">添加关注用户5</button>
    <button @click="addFollow(6)">添加关注用户6</button>
      <van-button to='/login' type="primary">登录页面</van-button>
<van-button to='/registered' type="info">注册页面</van-button>
<van-button to='/userinfo' type="default">用户中心</van-button>
<van-button to='/userdit' type="warning">用户编辑页面</van-button>
  </div>
  
</template>

<script>
import {addUserFollowsById}  from '@/api'
export default {
    data () {
        return {
            
        }
    },
   methods:{
       addFollow(id){
           addUserFollowsById(id).then((res)=>{
               console.log('addUserFollowsById',res.data.message);
           })
       }
   }
}
</script>

<style>

</style>